package com.hsgene.supplier;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * 供应商服务
 *
 * @author wangbing
 * @version 1.0, 2018/7/12
 */
@SpringBootApplication
@EnableAutoConfiguration
@EnableEurekaClient
@EnableHystrix
@ComponentScan(basePackages = "com.hsgene")
@EnableHystrixDashboard
@EnableFeignClients
@EnableDiscoveryClient
@ServletComponentScan
@MapperScan(basePackages = {"com.hsgene.supplier.persistence"})
public class MsModSupplierApplication {
    public static void main(String[] args) {
        SpringApplication.run(MsModSupplierApplication.class, args);
    }
}
